package com.pubinfo.passbook.data.quartz.task;

import com.pubinfo.passbook.data.quartz.service.ManualInvoiceReimbursement;
import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;

@Slf4j
@DisallowConcurrentExecution //作业不并发
@Component
public class ManualInvoiceReimbursementJob implements Job {
  @Resource
  ManualInvoiceReimbursement autoReimbursement;
  
  @Override
  public void execute(JobExecutionContext context) {
    log.info("定时任务成功" + new Date());
    autoReimbursement.autoManualReimbursement(null);
  }
  
}
